import {Component, Input} from '@angular/core';

/**
 * Generated class for the HeaderComponent component.
 *
 * See https://angular.io/api/core/Component for more info on Angular
 * Components.
 */
@Component({
  selector: 'header',
  templateUrl: 'header.html'
})
export class HeaderComponent {
  @Input() title;
  userInfo: any = {
    status: 0
  };

  constructor() {
    this.userInfo = {
      status: 1, // 登录状态
      head: 'xxx.jpge', // 头像
      name: 'xxx' //用户名
    }
  }

}
